package 进阶.lambda表达式.练习;

public class demo_jiaFa {
    public static void main(String[] args) {
        /*jia(a, y, new jiaFa() {
            @Override
            public int jia(int a, int y) {
                return a + y;
            }
        });*/

        jia(45,45,(a,b) -> {
            return a + b;
        });
    }

    private static void jia(int a, int b,jiaFa j) {
        int sum = j.jia(a, b);
        System.out.println(sum);
    }
}
